import type { PageParamsType } from '@/types/global'
import type { HotResType } from '@/types/hot'
import { http } from '@/utils/http'

// 交叉（）
export type HotParamsType = PageParamsType & {subType?:string}
// export const hotList = (data?:HotParamsType, path:string='')=>{
export const hotListHttp = ( path:string='', data?:HotParamsType)=>{
  return http<HotResType>({
    url:path,
    method:'GET',
    data:data,
  })
}
